package be.artesis.titamo.importer.gui.filefilter;

import java.io.File;

import javax.swing.filechooser.FileFilter;

import be.artesis.titamo.tools.StringTools;


public class TXTFileFilter extends FileFilter
{

	@Override
	public boolean accept(File f) {
		return (f.isDirectory() || StringTools.getExtension(f.getPath()).equals("txt"));
	}

	@Override
	public String getDescription() {
		return "TextFile (.txt)";
	}
}
